/*
 * @Descripttion: vue and node-bs
 * @Author: weijunliang-jul
 * @Date: 2021-03-04 15:06:39
 * @LastEditors: weijunliang-jul
 * @LastEditTime: 2021-03-04 17:56:01
 */
import request from '@/utils/request'

// 修改密码
export function updatePasswordApi(oldPassword, newPassword) {
    return request({
        url: '/users/upPwd',
        method: 'post',
        data: {
            oldPassword: oldPassword,
            newPassword: newPassword,
        },
    })
}

// 修改邮箱
export function updateEmailApi(newEmail) {
    return request({
        url: '/users/upEmail',
        method: 'post',
        data: {
            newEmail: newEmail
        },
    })
}

// 修改资料后的获取个人用户
export function getUser() {
    return request({
        url: '/users/getUser',
        method: 'get'
    })
}

